package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.ResearchProject;
import com.bonuo.saas.mapper.ResearchProjectMapper;
import com.bonuo.saas.service.ResearchProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResearchProjectServiceImpl implements ResearchProjectService {
    @Autowired
    private ResearchProjectMapper researchProjectMapper;
    @Override
    public List<ResearchProject> selectResearchProjectList(ResearchProject researchProject) {
        return researchProjectMapper.selectResearchProjectList(researchProject);
    }

    @Override
    public int insertResearchProject(ResearchProject researchProject) {
        return researchProjectMapper.insertResearchProject(researchProject);
    }

    @Override
    public int updateResearchProject(ResearchProject researchProject) {
        return researchProjectMapper.updateResearchProject(researchProject);
    }

    @Override
    public int deleteResearchProjectById(Integer id) {
        return researchProjectMapper.deleteResearchProjectById(id);
    }
}
